using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class vt_glintegrity6Map : EntityTypeConfiguration<vt_glintegrity6>
    {
        public vt_glintegrity6Map()
        {
            // Primary Key
            this.HasKey(t => t.batch);

            // Properties
            this.Property(t => t.batch)
                .IsRequired()
                .HasMaxLength(8);

            // Table & Column Mappings
            this.ToTable("vt_glintegrity6");
            this.Property(t => t.batch).HasColumnName("batch");
        }
    }
}
